/*
 *  wbos - parser of pe files
 *
 *  Copyright (C) 2011 by Volodymyr M. Shcherbyna <volodymyr@shcherbyna.com>
 *
 *      This file is part of wbos.
 *
 *  wbos is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  wbos is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with wbos.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef PEPARSER_H
#define PEPARSER_H

#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <stdio.h>

#include <tchar.h>
#include <sstream>
#include <iostream>

typedef struct TAG_PARTIAL_NT_HEADER
{
	DWORD Signature;
    IMAGE_FILE_HEADER FileHeader;
}PARTIAL_NT_HEADER;

class CPEParser
{
public:
    CPEParser(char * szFileName);
public:
    unsigned long getImageBase(void);
private:
    char *m_szFileName;
};

#endif // PEPARSER_H
